﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PanhuaWin
{
    public   class T_VIEW_CON  
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///唯一编码
        /// </summary>
        [Display(Name = "唯一编码")]
        [MaxLength(36)]
        [Column(TypeName = "char(36)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string CID { get; set; }

        /// <summary>
        ///申请人
        /// </summary>
        [Display(Name = "申请人")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string T_APP_USER_NAME { get; set; }

        /// <summary>
        ///申请人账号
        /// </summary>
        [Display(Name = "申请人账号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_APP_USER_CODE { get; set; }

        /// <summary>
        ///申请部门
        /// </summary>
        [Display(Name = "申请部门")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string T_APP_DPT_NAME { get; set; }

        /// <summary>
        ///申请部门CID
        /// </summary>
        [Display(Name = "申请部门CID")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_APP_DPT_CID { get; set; }

        /// <summary>
        ///申请时间
        /// </summary>
        [Display(Name = "申请时间")]
        [Column(TypeName = "smalldatetime")]
        [Editable(true)]
        public DateTime? T_APP_USER_DATE { get; set; }

        /// <summary>
        ///联系电话
        /// </summary>
        [Display(Name = "联系电话")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_APP_USER_TEL { get; set; }

        /// <summary>
        ///合同执行人
        /// </summary>
        [Display(Name = "合同执行人")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string T_EXECUTOR_NAME { get; set; }

        /// <summary>
        ///合同执行人账号
        /// </summary>
        [Display(Name = "合同执行人账号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_EXECUTOR_CODE { get; set; }

        /// <summary>
        ///是否历史合同
        /// </summary>
        [Display(Name = "是否历史合同")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string EXP40 { get; set; }

        /// <summary>
        ///合同起草类型
        /// </summary>
        [Display(Name = "合同起草类型")]
        [MaxLength(150)]
        [Column(TypeName = "nvarchar(150)")]
        public string T_DRAFT_NAME { get; set; }

        /// <summary>
        ///关联合同
        /// </summary>
        [Display(Name = "关联合同")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string T_RELATED_NAME { get; set; }

        /// <summary>
        ///关联合同CID
        /// </summary>
        [Display(Name = "关联合同CID")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_RELATED_CID { get; set; }

        /// <summary>
        ///合同名称
        /// </summary>
        [Display(Name = "合同名称")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string T_CONTRACT_NAME { get; set; }

        /// <summary>
        ///合同编号
        /// </summary>
        [Display(Name = "合同编号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string T_CONTRACT_CODE { get; set; }

        /// <summary>
        ///合同类型
        /// </summary>
        [Display(Name = "合同类型")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string T_CONTRACT_TYPE_NAME { get; set; }

        /// <summary>
        ///合同类型CID
        /// </summary>
        [Display(Name = "合同类型CID")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_CONTRACT_TYPE_CID { get; set; }

        /// <summary>
        ///合同金额
        /// </summary>
        [Display(Name = "合同金额")]
        [MaxLength(300)]
        [Column(TypeName = "nvarchar(300)")]
        [Editable(true)]
        public string T_CONTRACT_MONEY { get; set; }

        /// <summary>
        ///币种
        /// </summary>
        [Display(Name = "币种")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string T_MONEY_UNIT { get; set; }

        /// <summary>
        ///人民币大写
        /// </summary>
        [Display(Name = "人民币大写")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string T_MONEY_CAPITAILZATION { get; set; }

        /// <summary>
        ///税率
        /// </summary>
        [Display(Name = "税率")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_RATE { get; set; }

        /// <summary>
        ///不含税金额
        /// </summary>
        [Display(Name = "不含税金额")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string T_RATE_BEFOR_MONEY { get; set; }

        /// <summary>
        ///期限类型
        /// </summary>
        [Display(Name = "期限类型")]
        [MaxLength(300)]
        [Column(TypeName = "nvarchar(300)")]
        public string T_TEAN_TYPE { get; set; }

        /// <summary>
        ///起始日期
        /// </summary>
        [Display(Name = "起始日期")]
        [Column(TypeName = "date")]
        [Editable(true)]
        public DateTime? T_START_DATE { get; set; }

        /// <summary>
        ///终止日期
        /// </summary>
        [Display(Name = "终止日期")]
        [Column(TypeName = "date")]
        [Editable(true)]
        public DateTime? T_END_DATE { get; set; }

        /// <summary>
        ///期限
        /// </summary>
        [Display(Name = "期限")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_TEAN { get; set; }

        /// <summary>
        ///期限单位
        /// </summary>
        [Display(Name = "期限单位")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string T_TEAN_UNIT { get; set; }

        /// <summary>
        ///收付款方式
        /// </summary>
        [Display(Name = "收付款方式")]
        [MaxLength(300)]
        [Column(TypeName = "nvarchar(300)")]
        [Editable(true)]
        public string T_PAY_WAY { get; set; }

        /// <summary>
        ///收付款方式CID
        /// </summary>
        [Display(Name = "收付款方式CID")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_PAY_WAY_CID { get; set; }

        /// <summary>
        ///项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [MaxLength(4000)]
        [Column(TypeName = "nvarchar(4000)")]
        [Editable(true)]
        public string T_PROJECT_NAME { get; set; }

        /// <summary>
        ///项目名称CID
        /// </summary>
        [Display(Name = "项目名称CID")]
        [MaxLength(4000)]
        [Column(TypeName = "nvarchar(4000)")]
        public string T_PROJECT_CID { get; set; }

        /// <summary>
        ///项目负责人
        /// </summary>
        [Display(Name = "项目负责人")]
        [MaxLength(3600)]
        [Column(TypeName = "nvarchar(3600)")]
        public string T_PROJECT_USER_NAME { get; set; }

        /// <summary>
        ///项目负责人账号
        /// </summary>
        [Display(Name = "项目负责人账号")]
        [MaxLength(3600)]
        [Column(TypeName = "nvarchar(3600)")]
        public string T_PROJECT_USER_CODE { get; set; }

        /// <summary>
        ///简要说明
        /// </summary>
        [Display(Name = "简要说明")]
        [MaxLength(16)]
        [Column(TypeName = "text(16)")]
        public string T_REMARK { get; set; }

        /// <summary>
        ///我方签约主体
        /// </summary>
        [Display(Name = "我方签约主体")]
        [MaxLength(300)]
        [Column(TypeName = "nvarchar(300)")]
        public string T_SUBJECT_NAME { get; set; }

        /// <summary>
        ///我方签约主体CID
        /// </summary>
        [Display(Name = "我方签约主体CID")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_SUBJECT_CID { get; set; }

        /// <summary>
        ///合同用印
        /// </summary>
        [Display(Name = "合同用印")]
        [MaxLength(3600)]
        [Column(TypeName = "nvarchar(3600)")]
        public string T_SEAL { get; set; }

        /// <summary>
        ///合同用印路径
        /// </summary>
        [Display(Name = "合同用印路径")]
        [MaxLength(3600)]
        [Column(TypeName = "nvarchar(3600)")]
        public string T_SEAL_PATH { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_ORDER")]
        [Column(TypeName = "int")]
        public int? T_ORDER { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_CODE")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_CODE { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_NAME")]
        [MaxLength(600)]
        [Column(TypeName = "nvarchar(600)")]
        public string T_GOOD_NAME { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_MODEL")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string T_GOOD_MODEL { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_PRICE")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_PRICE { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_NUM")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_NUM { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_UNIT")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_UNIT { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_ADDRESS")]
        [MaxLength(800)]
        [Column(TypeName = "nvarchar(800)")]
        public string T_GOOD_ADDRESS { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_TIME")]
        [Column(TypeName = "date")]
        public DateTime? T_GOOD_TIME { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_REMARK")]
        [MaxLength(1500)]
        [Column(TypeName = "nvarchar(1500)")]
        public string T_GOOD_REMARK { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_TRANSACTION_NUM")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_TRANSACTION_NUM { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_EXP1")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string T_GOOD_EXP1 { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_EXP2")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string T_GOOD_EXP2 { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_EXP3")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string T_GOOD_EXP3 { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_EXP4")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        public string T_GOOD_EXP4 { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_RELATIVE_NAME")]
        [Column(TypeName = "nvarchar(max)")]
        public string T_RELATIVE_NAME { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_MONEY")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string T_GOOD_MONEY { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "T_GOOD_CID")]
        [MaxLength(36)]
        [Column(TypeName = "char(36)")]
        public string T_GOOD_CID { get; set; }


    }
}
